//1
var a = [];
for(var i = 0; i < 10; i++){
    a[i] = function(){
        console.log(i)
    }
}
a[6]()
//2
var tmp = 123;
if(true){
    console.log(tmp)
    let tmp = 0
}
//3
var arr = [12, 34, 32, 89, 4]
//5
var a = 10;
var obj = {
    a: 20,
    fn(){
        setTimeout(()=>{
            console.log(this.a)
        })
    }
}
obj.fn()